﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace EFong.Contract
{
    [DataContract]
    public class 支付单
    {
        private Guid _id = Guid.NewGuid();
        [DataMember]
        public Guid ID
        {
            get { return _id; }
            set { _id = value; }
        }

        private string _ref = string.Empty;
        [DataMember]
        public string Ref
        {
            get { return _ref; }
            set { _ref = value; }
        }

        private string _type = string.Empty;
        [DataMember]
        public string Type
        {
            get { return _type; }
            set { _type = value; }
        }

        private Guid _customerID = Guid.NewGuid();
        [DataMember]
        public Guid CustomerID
        {
            get { return _customerID; }
            set { _customerID = value; }
        }

        private string _customer = string.Empty;
        [DataMember]
        public string Customer
        {
            get { return _customer; }
            set { _customer = value; }
        }

        private string _orderUser = string.Empty;
        [DataMember]
        public string OrderUser
        {
            get { return _orderUser; }
            set { _orderUser = value; }
        }

        private DateTime _orderDate = DateTime.Now;
        [DataMember]
        public DateTime OrderDate
        {
            get { return _orderDate; }
            set { _orderDate = value; }
        }

        private decimal _money;
        [DataMember]
        public decimal Money
        {
            get { return _money; }
            set { _money = value; }
        }

        private decimal _已支付金额;
        [DataMember]
        public decimal 已支付金额
        {
            get { return _已支付金额; }
            set { _已支付金额 = value; }
        }

        private decimal _应付;
        [DataMember]
        public decimal 应付
        {
            get { return _应付; }
            set { _应付 = value; }
        }

        private Currency _currency;
        [DataMember]
        public Currency Currency
        {
            get { return _currency; }
            set { _currency = value; }
        }

        private decimal _intergral;
        [DataMember]
        public decimal Intergral
        {
            get { return _intergral; }
            set { _intergral = value; }
        }

        private bool _isSelect = false;
        //[DataMember]
        public bool IsSelect
        {
            get { return _isSelect; }
            set { _isSelect = value; }
        }

        private decimal _利润;
        [DataMember]
        public decimal 利润
        {
            get { return _利润; }
            set { _利润 = value; }
        }
    }
}
